<template>
    <div>
        <el-tabs v-model="activeName">
            <el-tab-pane label="流程日志" name="processLog">
                <p class="process-info"><el-link @click="toProcessInfo">流程详情</el-link></p>
                <div class="steps-box">
                    <el-steps direction="vertical" :active="1">
                        <el-step>
                            <template slot="description">
                                <el-collapse v-model="activeNames">
                                    <el-collapse-item title="一致性 Consistency" name="1">
                                        <div>与现实生活一致：与现实生活的流程、逻辑保持一致，遵循用户习惯的语言和概念；</div>
                                        <div>在界面中一致：所有的元素和结构需保持一致，比如：设计样式、图标和文本、元素的位置等。</div>
                                    </el-collapse-item>
                                </el-collapse>
                            </template>
                        </el-step>
                        <el-step>
                            <template slot="description">
                                <el-collapse v-model="activeNames">
                                    <el-collapse-item title="一致性 Consistency" name="1">
                                        <div>与现实生活一致：与现实生活的流程、逻辑保持一致，遵循用户习惯的语言和概念；</div>
                                        <div>在界面中一致：所有的元素和结构需保持一致，比如：设计样式、图标和文本、元素的位置等。</div>
                                    </el-collapse-item>
                                </el-collapse>
                            </template>
                        </el-step>
                        <el-step>
                            <template slot="description">
                                <el-collapse v-model="activeNames">
                                    <el-collapse-item title="一致性 Consistency" name="1">
                                        <div>与现实生活一致：与现实生活的流程、逻辑保持一致，遵循用户习惯的语言和概念；</div>
                                        <div>在界面中一致：所有的元素和结构需保持一致，比如：设计样式、图标和文本、元素的位置等。</div>
                                    </el-collapse-item>
                                </el-collapse>
                            </template>
                        </el-step>
                    </el-steps>
                </div>
            </el-tab-pane>
        </el-tabs>
    </div>
</template>

<script lang="ts">
import { Component, Vue } from "vue-property-decorator";

@Component
export default class ProcessLog extends Vue {
    activeName = "processLog"

    activeNames = ['1']

    // 去流程详情
    toProcessInfo() {
        console.log("去流程详情");
    }
}
</script>

<style lang="scss" scoped>
    .process-info {
        text-align: right;
        margin: 0 10px 10px 0;
    }
    .steps-box {
        height: 500px;
    }
</style>
